package com.zrulin.ftcommunity.service;

import javax.xml.crypto.Data;
import java.util.Date;

/**
 * @author zrulin
 * @create 2022-07-12 10:31
 */
public interface DataStatisticsService {


    /**
     * 将指定ip存入uv
     * @param ip
     */
    public void recordUV(String ip);

    /**
     * 统计指定范围内的UV
     * @param start
     * @param end
     * @return
     */
    public long calculateUV(Date start, Date end);

    /**
     * 将指定用户计入DAU
     * @param userId
     */
    public void recordDAU(int userId);

    /**
     * 统计指定范围内的DAU
     * @param start
     * @param end
     * @return
     */
    public long calculateDAU(Date start, Date end);
}
